<template>
    <div>
        <van-nav-bar title="订单页" left-arrow @click-left="($router.push('/home/cart'))" />
        <van-address-list v-model="chosenAddressId" :list="list" :disabled-list="disabledList"
             default-tag-text="默认" @add="onAdd" @edit="onEdit" />
        <van-cell-group inset>
            <van-cell title="商品信息" value="ghjiopewwce" />
            <van-cell title="商品数量" value="2" />
            <van-cell title="商品价格" value="￥6400.00" />
            <van-cell title="物流消息" value="待收货" />
            <van-cell title="联系方式" value="13867992821" />
            <van-cell title="备注" value="123" />
              
            
            
        </van-cell-group>


    </div>
</template>

<script setup>
import { ref } from 'vue';
import { useRoute } from 'vue-router';
const route = useRoute()
// console.log(route.params.orderId)
import { orderData } from '@/api/api';
let order = ref([])
orderData(route.params.orderId).then(res => {
    console.log('订单详情', res)
    order.value = res.data.data
})
const list = [
    {
        id: '1',
        name: '张三',
        tel: '13000000000',
        address: '浙江省杭州市西湖区文三路 138 号东方通信大厦 7 楼 501 室',
        isDefault: true,
    },
]

</script>

<style lang="scss" scoped></style>